import request from '@/utils/request'

// 查询渠道商审核列表
export function listChannelApply(query) {
  return request({
    url: '/channelApply/channelApply/list',
    method: 'get',
    params: query
  })
}

// 查询渠道商审核详细
export function getChannelApply(id) {
  return request({
    url: '/channelApply/channelApply/' + id,
    method: 'get'
  })
}

// 新增渠道商审核
export function addChannelApply(data) {
  return request({
    url: '/channelApply/channelApply',
    method: 'post',
    data: data
  })
}

// 修改渠道商审核
export function updateChannelApply(data) {
  return request({
    url: '/channelApply/channelApply',
    method: 'put',
    data: data
  })
}

// 删除渠道商审核
export function delChannelApply(id) {
  return request({
    url: '/channelApply/channelApply/' + id,
    method: 'delete'
  })
}
